#!/usr/local/bin/rake
# Copyright (C) 2003-2010 Wang Pengcheng <wpc0000@gmail.com>
# , released under the MIT license
# You may obtain a template of the MIT License at
# http://www.opensource.org/licenses/mit-license.php
$KCODE = 'u'

desc 'Compile tex files'
task :default => :compile

OUTPUT='output'
def cm
  system 'xelatex', '--output-directory='+OUTPUT, 'main'
end
desc 'Compile tex files'
task :compile do
  cm
  cm
end

desc 'Recompile Bib file'
task :bib do
  cm
  system 'bibtex', OUTPUT+'/main'
end

